<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: Order Yarn Dye ::</title>

<script language="javascript" type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/javascript.js"></script>
<link rel="stylesheet" href="<%= request.getContextPath() %>/common-css/orderyd-css/style.css" type="text/css" />
<link rel="stylesheet" href="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.picker.css" type="text/css" />
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.plus.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.picker.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.thai.pack.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.thai-th.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.picker-th.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common-css/orderyd-css/calendar/jquery.calendars.thai.min.js"></script>

<script type="text/javascript">
$(function() {
	$('#popupDatepicker').calendarsPicker();
});

</script>
</head>
<body >

<form name="form1" method="post" id="form1" action="<%= request.getContextPath() %>/orderyd/orderyd.do">
	<input type="hidden" name="rowOrder" value="${p.rowOrder }" />
	<input type="hidden" name="order_noOld" value="${p.order_no }" />
<table border="0" width="100%">
<tr>
<td width="50%" align="right">Yarn Dye Order : <input type="text" name="order_NO" value="${p.order_no }" /></td>
<td align="left">Date :<input type="text" name="dmy" id="popupDatepicker" value="${p.order_date }" /></td>
</tr>
<tr>
<td align="right">Order Plan : <input type="text" name="order_Plan" value="${p.order_plan }" /></td>
<td align="left">Plan : <input type="text" name="plan" value="${p.ttl_plan }" /></td>
</tr>
<tr>
<td colspan="2">
<div align="right">

</div>
<table border="0" width="100%" id="maininput">
  <tr>
    <th>NO.</th>
    <th colspan="3">COL NO.</th>
    <th>LOT NO.</th>
    <th>COUNT</th>
    <th>PBLS</th>
    <th>LBS</th>
    <th>SHADE</th>
    <th>W / P</th>
    <th>REC</th>
    <th>ORG. REC</th>
    <th>CHEESE</th>
    <th>FUAI</th>
  </tr>
  <tr>
    <td>1</td>
    <td><input type="text" id="COL_NO1" name="COL_NO" class="COL" value="${p.col_no }"  /></td>
    <td>&nbsp;-</td>
    <td><input type="text" id="COL_SUB1" name="COL_SUB" class="COL2" value="${p.col_sub }"  /></td>
    <td><input type="text" id="LOT_NO1" name="LOT_NO" class="COL3"  value="${p.lot_no }"/></td>
    <td><input type="text" id="COUNT1" name="COUNT" class="COL3" value="${p.count }" /></td>
    <td><input type="text" id="PBLS1" name="PBLS" class="COL3" value="${p.pbls }" /></td>
    <td><input type="text" id="LBS1" name="LBS" class="COL3" value="${p.lbs }" /></td>
    <td>
    	<html:select property="SHADE" value="${p.shade }" styleId="SHADE1" style="width:50px" >
 			<html:option value="P">P</html:option>
			<html:option value="M">M</html:option>
			<html:option value="D">D</html:option>
		</html:select>
       
    </select>
    </td>
    <td>
    <html:select property="WP" value="${p.w_p }" styleId="WP1" style="width:50px" >
    		<html:option value="W">W</html:option>
			<html:option value="P">P</html:option>
    </html:select>

    </td>
    <td>
    <html:select property="REC" value="${p.rec }" styleId="REC1" style="width:50px" >
    
        <html:option value="BB" >BB</html:option>
        <html:option value="SBB">SBB</html:option>
        <html:option value="BC">BC</html:option>
        <html:option value="SBC">SBC</html:option>
        <html:option value="SS">SS</html:option>
    </html:select>
    </td>
    <td><input type="text" id="ORG1" name="ORG" class="COL3" value="${p.org }" /></td>
    <td>
    
    <html:select property="CHEESE" value="${p.cheese }" styleId="CHEESE1" style="width:50px" >
        <html:option value="C" >C</html:option>
        <html:option value="CS" >CS</html:option>
    </html:select>
	</td>
    <td>
    <html:select property="FUAI" value="${p.fuai }" styleId="FUAI1" style="width:50px" >
        <html:option value=" " ></html:option>
        <html:option value="F" >F</html:option>
     </html:select>
	</td>
  </tr>
</table>
<br />
  <html:submit property="mode" >
  	<bean:message key="orderydForm.update" />
  </html:submit>
  <html:submit property="mode" >
  	<bean:message key="orderydForm.delete" />
  </html:submit>  
</td>
</tr>
</table>
</form>
</body>
</html>